package com.atguigu.cloud.order.feign.fallback;

import com.atguigu.cloud.order.feign.UserFeignClient;
import com.atguigu.cloud.user.entity.User;
import org.springframework.stereotype.Component;

/**
 * 熔断降级，自定义返回兜底数据
 *
 * @author Taeyang
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {

    @Override
    public User queryById(Long userId, String header) {
        return null;
    }
}